package com.vader.boot.scope;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @author Vader
 * @date 2022/5/24
 **/
@Scope(value = "session")
@Component
public class BeanForSession {

    @PreDestroy
    public void destroy() {
        System.out.println("BeanForSession_destroy:" + this);
    }
}
